package com.dwd.hrm.service;

import com.dwd.hrm.doc.CourseDoc;
import com.dwd.hrm.domain.Course;
import com.baomidou.mybatisplus.service.IService;
import com.dwd.hrm.domain.CourseDetail;
import com.dwd.hrm.dto.CourseDto;
import com.dwd.hrm.query.CourseDocQuery;
import com.dwd.hrm.util.AjaxResult;
import com.dwd.hrm.util.PageList;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wendi
 * @since 2021-03-05
 */
public interface ICourseService extends IService<Course> {

    void updateById(CourseDto courseDto);

    void insert(CourseDto courseDto);

    void bathUp(List<Course> courses);

    void batchDown(List<Course> courses);

    /**
     * 查询市场和详情
     * @param id
     * @return
     */
    CourseDetail querymarketAndDetal(Long id);

    AjaxResult bathUpOrBathDown(Course course, boolean flag);

    PageList<CourseDoc> queryCourses(CourseDocQuery courseDocQuery);
}
